<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('受访人信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>会员ID(关联致远‘org_member表的id’)：</p>
                                <input type="text" name="orgMemberId"/>
                            </li>
                            <li>
                                <p>1，男；2，女：</p>
                                <select name="sex" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>姓名：</p>
                                <input type="text" name="name"/>
                            </li>
                            <li>
                                <p>曾用名：</p>
                                <input type="text" name="usedname"/>
                            </li>
                            <li class="select-time">
                                <p>出生日期：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginBirthday]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endBirthday]"/>
                            </li>
                            <li>
                                <p>民族：</p>
                                <input type="text" name="nation"/>
                            </li>
                            <li>
                                <p>籍贯：</p>
                                <input type="text" name="birthplace"/>
                            </li>
                            <li>
                                <p>身份证号：</p>
                                <input type="text" name="idCard"/>
                            </li>
                            <li>
                                <p>1，初中；2，高中；3，大专；4，本科；5，研究生；6，博 士；7，其它：</p>
                                <input type="text" name="eduLevel"/>
                            </li>
                            <li>
                                <p>1，未婚；2，已婚：</p>
                                <input type="text" name="marriage"/>
                            </li>
                            <li>
                                <p>1，党员；2，非党员：</p>
                                <input type="text" name="politicalPosition"/>
                            </li>
                            <li class="select-time">
                                <p>入职时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginWorkStartingDate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endWorkStartingDate]"/>
                            </li>
                            <li>
                                <p>工龄：</p>
                                <input type="text" name="workingTime"/>
                            </li>
                            <li>
                                <p>专业：</p>
                                <input type="text" name="specialty"/>
                            </li>
                            <li>
                                <p>业余爱好：</p>
                                <input type="text" name="hobby"/>
                            </li>
                            <li>
                                <p>档案工资：</p>
                                <input type="text" name="recordWage"/>
                            </li>
                            <li>
                                <p>备注：</p>
                                <input type="text" name="remark"/>
                            </li>
                            <li>
                                <p>邮箱：</p>
                                <input type="text" name="email"/>
                            </li>
                            <li>
                                <p>电话：</p>
                                <input type="text" name="telNumber"/>
                            </li>
                            <li>
                                <p>QQ：</p>
                                <input type="text" name="qq"/>
                            </li>
                            <li>
                                <p>MSN：</p>
                                <input type="text" name="msn"/>
                            </li>
                            <li>
                                <p>头像ID：</p>
                                <input type="text" name="imageId"/>
                            </li>
                            <li class="select-time">
                                <p>头像日期时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginImageDatetime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endImageDatetime]"/>
                            </li>
                            <li>
                                <p>头像名称：</p>
                                <input type="text" name="imageName"/>
                            </li>
                            <li>
                                <p>自定义头像名称：</p>
                                <input type="text" name="selfImageName"/>
                            </li>
                            <li>
                                <p>等级：</p>
                                <input type="text" name="degreeLevel"/>
                            </li>
                            <li>
                                <p>成长地：</p>
                                <input type="text" name="growUpRegions"/>
                            </li>
                            <li>
                                <p>血型：</p>
                                <select name="bloodType" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li class="select-time">
                                <p>参加工作时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginBeginWorkDate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endBeginWorkDate]"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="personnel:intervieweeInfo:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="personnel:intervieweeInfo:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="personnel:intervieweeInfo:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="personnel:intervieweeInfo:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('personnel:intervieweeInfo:edit')}]];
        var removeFlag = [[${@permission.hasPermi('personnel:intervieweeInfo:remove')}]];
        var prefix = ctx + "personnel/intervieweeInfo";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "受访人信息",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id',
                    title : 'id',
                    visible: false
                },
                {
                    field : 'orgMemberId',
                    title : '会员ID(关联致远‘org_member表的id’)'
                },
                {
                    field : 'sex',
                    title : '1，男；2，女'
                },
                {
                    field : 'name',
                    title : '姓名'
                },
                {
                    field : 'usedname',
                    title : '曾用名'
                },
                {
                    field : 'birthday',
                    title : '出生日期'
                },
                {
                    field : 'nation',
                    title : '民族'
                },
                {
                    field : 'birthplace',
                    title : '籍贯'
                },
                {
                    field : 'idCard',
                    title : '身份证号'
                },
                {
                    field : 'eduLevel',
                    title : '1，初中；2，高中；3，大专；4，本科；5，研究生；6，博 士；7，其它'
                },
                {
                    field : 'marriage',
                    title : '1，未婚；2，已婚'
                },
                {
                    field : 'politicalPosition',
                    title : '1，党员；2，非党员'
                },
                {
                    field : 'workStartingDate',
                    title : '入职时间'
                },
                {
                    field : 'workingTime',
                    title : '工龄'
                },
                {
                    field : 'specialty',
                    title : '专业'
                },
                {
                    field : 'hobby',
                    title : '业余爱好'
                },
                {
                    field : 'recordWage',
                    title : '档案工资'
                },
                {
                    field : 'remark',
                    title : '备注'
                },
                {
                    field : 'email',
                    title : '邮箱'
                },
                {
                    field : 'telNumber',
                    title : '电话'
                },
                {
                    field : 'qq',
                    title : 'QQ'
                },
                {
                    field : 'msn',
                    title : 'MSN'
                },
                {
                    field : 'imageId',
                    title : '头像ID'
                },
                {
                    field : 'imageDatetime',
                    title : '头像日期时间'
                },
                {
                    field : 'imageName',
                    title : '头像名称'
                },
                {
                    field : 'selfImageName',
                    title : '自定义头像名称'
                },
                {
                    field : 'degreeLevel',
                    title : '等级'
                },
                {
                    field : 'growUpRegions',
                    title : '成长地'
                },
                {
                    field : 'bloodType',
                    title : '血型'
                },
                {
                    field : 'beginWorkDate',
                    title : '参加工作时间'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>